<?php
// +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK ]
// +----------------------------------------------------------------------
// | Copyright (c) 2006~2018 http://thinkphp.cn All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: liu21st <liu21st@gmail.com>
// +----------------------------------------------------------------------

// +----------------------------------------------------------------------
// | Redis配置
// +----------------------------------------------------------------------

use think\facade\Env;

return [
	// 缓存类型，必须有，主要是使用cache链接，会判断类型
	'type'   => 'redis',
    // 缓存前缀
    'prefix' => Env::get('REDIS.PREFIX', ''),
    // redis主机
    'host' =>  Env::get('REDIS.HOST', '127.0.0.1'),
    // redis端口
    'port' => Env::get('REDIS.PORT', '6379'),
    // 数据库编号
    'select' =>  Env::get('REDIS.DATABASE', 21),
    // redis 密码
    'password' => Env::get('REDIS.PASSWORD', ''),
    // 缓存有效期 0表示永久缓存
    'expire' =>  Env::get('REDIS.EXPIRE', 0),
];
